package ai.people.platform.system.mapper;

import ai.people.netmon.framework.domain.system.entity.NmSystemRole;
import ai.people.netmon.framework.domain.ucenter.entity.NmSysRoles;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 系统角色映射器
 *
 * @author yuanqinglong
 * @date 2022/3/7 11:09
 */
@Mapper
public interface SystemRoleMapper extends BaseMapper<NmSystemRole> {


    /**
     * 通过用户id查询角色
     *
     * @param userId 用户id
     * @return {@link List}<{@link NmSystemRole}>
     */
    List<NmSystemRole> listRolesByUserId(Long userId);

}
